﻿
@{
    ViewBag.Title = "收支明细表";
    Layout = "~/Views/Shared/_LayoutDateUserCorS.cshtml";
}

<script>
    $(document).ready(function () {
        $("#SearchFlag").attr("disabled", "disabled");
        $("#UserId").attr("disabled", "disabled");

        $("#loadDataFromServer").click(function () {
            $.get("/Pay/sz", {
                startDate: $("#StartDate").val(),
                endDate: $("#EndDate").val(),
                corSId: $("#CorSId").val(),
                bankId: $("#BankId").val(),
                payType: $("#PayType").val()
            }, function (data, status) {
                if (status == "success") {
                    $("#tableDetail").html(data);
                }
                else {
                    alert("远程服务器连接失败");
                }
            });
        });
    });
</script>

@section SubMenu1{
    账户:
    @Html.DropDownList("BankId", ViewData["Bank"] as SelectList, htmlAttributes: new { @class = "form-control" })
}

@section SubMenu2{
    类型:
<select class="form-control" id="PayType" name="PayType">
    <option selected="selected" value="-1">全部</option>
    <option value="0">其它收入单</option>
    <option value="1">其它支出单</option>
    <option value="2">公寓结算单</option>
    <option value="3">采购结算单预付款</option>
    <option value="4">采购结算单</option>
    <option value="5">销售结算单预付款</option>
    <option value="6">销售结算单</option>
    <option value="7">培训学员报名单</option>
    <option value="8">零售交班结算单</option> 
</select>
}